package cn.itcast.day05.demo04;
//定义一个标准的学生类
/*
    1.所有的成员变量都要使用private关键字修饰
    2.为每一个成员变量写set、get方法
    3.编写一个无参构造；
    4.编写一个
 */
public class student {

    private String name;
    private int age;

    public student()
    {

    }

    public student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
